<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class RentAndPurchase extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;
    protected $guarded=[];
    protected $table = 'rent_and_purchase';
    public function listModel(){
        return $this->hasOne(HouseType::class,'id','house_type');
    }
    public function userModel(){
        return $this->hasOne(WxUser::class,'id','uid');
    }
}
